﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JcghKit.DALibrary.SqlServer;
namespace JcghKit.DALibrary
{
   public class DataAccess
    {
       public static object CreateObject()
       {
           object objType = new SQLHelper();
           return objType;
       }
       //public static object CreateObject(string AssemblyPath, string ClassNamespace)
       //{
       //    object objType = DataCache.GetCache(ClassNamespace);//从缓存读取
       //    if (objType == null)
       //    {
       //        try
       //        {
       //            objType = Assembly.Load(AssemblyPath).CreateInstance(ClassNamespace);//反射创建
       //            DataCache.SetCache(ClassNamespace, objType);// 写入缓存
       //        }
       //        catch
       //        { }
       //    }
       //    return objType;
       //}
    }
}
